﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace BadJokeProject
{
    public partial class Settings : ChildWindow
    {
        public Settings()
        {
            InitializeComponent();
            this.Verify.SetParentWindow(this);
            this.Editor.SetParentWindow(this);
            this.LayoutUpdated += new EventHandler(Settings_LayoutUpdated);
        }

        void Settings_LayoutUpdated(object sender, EventArgs e)
        {
            this.LayoutUpdated -= Settings_LayoutUpdated;
            VisualStateManager.GoToState(this, "AtLogin", true);
        }

        public void NavigateToEditor()
        {
            VisualStateManager.GoToState(this, "AtRegistration", true);
        }

        public void NavigateToLogin()
        {
            VisualStateManager.GoToState(this, "AtLogin", true);
        }
    }
}

